<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<body>
<script type="text/javascript">
	
var a = [21313,123,2390,288,779297,32974,7437,213890,908,8793,32709];
var b = a.sort(function(x,y){return x-y});
alert(b[parseInt(b.length/2)]);
//alert(b.slice((b.length-1)/2,(b.length+1)/2))
//a.sort();

</script>
</body>
</html>